package entity

import (
	"hobby-mate/common"
)

// Account 用户实体
type Account struct {
	AccountId   string `json:"accountId" form:"account_id"  gorm:"primary_key; comment:用户唯一标识符" `
	Username    string `json:"userName" form:"username"  gorm:"not null;comment:用户名" `
	LoginName   string `json:"loginName" form:"login_name"  gorm:"not null;comment:登录名，仅登录时使用"`
	Password    string `json:"password" form:"password"  gorm:"not null;comment:用户密码（加密）"`
	Email       string `json:"email" form:"email" gorm:"comment:用户邮箱" `
	PhoneNumber string `json:"phone" form:"phone" gorm:"comment:电话号码" `
	Avatar      string `json:"avatar" form:"avatar" gorm:"comment:用户头像"`
	common.WxEntity
	common.BaseEntity
}

func (Account) TableName() string {
	return "t_account"
}
